using System;
using System.ComponentModel.DataAnnotations;

namespace SmartApplication.Domain.Entity
{
    /// <summary>
    /// 溯源基本信息
    /// </summary>
    public class SourceModel : BaseModel
    {
        /// <summary>
        /// 企业
        /// </summary>
        [Required]
        [StringLength(100)]
        public string Enterprise { get; set; }

        /// <summary>
        /// 生产批次
        /// </summary>
        [Required]
        [StringLength(50)]
        public string Production { get; set; }

        /// <summary>
        /// 生产许可证号
        /// </summary>
        public string ExpNumber { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        [StringLength(100)]
        public string ShopName { get; set; }

        /// <summary>
        /// 保质期(天数)
        /// </summary>
        public int Expiration { get; set; }

        /// <summary>
        /// 图片 产品动检报告
        /// </summary>
        [StringLength(255)]
        public string Pic { get; set; }

        /// <summary>
        /// 商品图片
        /// </summary>
        [StringLength(255)]
        public string ShopPic { get; set; }

    }
}